package com.zrx.controller;

import com.zrx.domain.ResponseResult;
import com.zrx.service.CategoryService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author 张荣欣
 * @create ：2022/9/16  9:24
 */
@RestController
@RequestMapping("/category")
@Api(tags = "分类")
public class CategoryController {

    @Autowired
    private CategoryService categoryService;

    @GetMapping("/getCategoryList")
    @ApiOperation(value = "已有文章的分类", notes = "已有文章的分类 ")
    public ResponseResult getCategoryList(){
        return categoryService.getCategoryList();
    }


}
